<?php
include($_SERVER['DOCUMENT_ROOT'] . "/admin/includes/interceptor.php");
require_once $_SERVER['DOCUMENT_ROOT'] . '/autoload.php';

use Qiniu\Auth;

$accessKey = 'Vr2infZAJEsN8MVWW-KRaFDtyvKbW7YEPIOcudlL';
$secretKey = '-k0wf3uG7kyQIeyRm0OD0VSC3WUK-upZtk7U59tu';
$bucket = 'softwarebox';
$auth = new Auth($accessKey, $secretKey);

$expires = 3600;
$policy = null;
$upToken = $auth->uploadToken($bucket, null, $expires, $policy, true);
echo $upToken;